-- GENERATED SPELL FOR [Grimkor's Hound] --


function spell0_32163(pUnit, Event) --@Mana Burn,Self--
pUnit:FullCastSpellOnTarget(20817,pUnit)
pUnit:RegisterEvent('Sorts_32163', 1000, 1)
end

function spell1_32163(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32163', 8000, 1)
end

function spell2_32163(pUnit, Event) --@Vicious Rend,n/a--
pUnit:FullCastSpellOnTarget(14331,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32163', 15000, 1)
end

function Sorts_32163(pUnit, Event)
local choix_sorts_32163 = math.random(0, 2)
if choix_sorts_32163 == 0 then
pUnit:RegisterEvent('spell0_32163', 1, 1)
end
if choix_sorts_32163 == 1 then
pUnit:RegisterEvent('spell1_32163', 1, 1)
end
if choix_sorts_32163 == 2 then
pUnit:RegisterEvent('spell2_32163', 1, 1)
end
end

function mob32163_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32163', math.random(1500, 3000), 1)
end

function mob32163_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32163_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32163_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32163, 1, 'mob32163_Action')
RegisterUnitEvent(32163, 2, 'mob32163_Leave')
RegisterUnitEvent(32163, 3, 'mob32163_Kill')
RegisterUnitEvent(32163, 4, 'mob32163_Die')
